From ebc09c5062cc7996b0f2aaf879062fc950c2e1c2 Mon Sep 17 00:00:00 2001 From: Rafi Zadanly Date: Wed, 25 Jan 2023 11:17:37 +0700 Subject: Transaction detail and variant card component --- src/pages/my/transactions/[slug].js | 126 ------------------------------------ 1 file changed, 126 deletions(-) delete mode 100644 src/pages/my/transactions/[slug].js (limited to 'src/pages/my/transactions/[slug].js') diff --git a/src/pages/my/transactions/[slug].js b/src/pages/my/transactions/[slug].js deleted file mode 100644 index a76b0c4d..00000000 --- a/src/pages/my/transactions/[slug].js +++ /dev/null @@ -1,126 +0,0 @@ -import { ArrowDownOnSquareIcon, ArrowDownTrayIcon, ChevronDownIcon, ChevronRightIcon, ChevronUpIcon } from "@heroicons/react/24/outline"; -import AppBar from "@/components/layouts/AppBar"; -import Layout from "@/components/layouts/Layout"; -import LineDivider from "@/components/elements/LineDivider"; -import WithAuth from "@/components/auth/WithAuth"; -import { useState } from "react"; - -const Row = ({ label, children }) => ( -
-

{ label }

-
- { children } -
-
-); - -const Section = ({ children }) => ( -
- { children } -
-); - -const TitleRow = ({ label, active, onClick }) => ( -
-

{ label }

- { onClick && ( active ? ( - - ) : ( - - ) ) } -
-); - -export default function DetailTransactions() { - const [ activeSection, setActiveSection ] = useState({ - purchase: false, - shipping: false, - invoice: false, - }); - - const toggleSection = ( name ) => { - setActiveSection({ - ...activeSection, - [name]: !activeSection[name] - }); - }; - - return ( - - - - -
-
- - Pending Quotation - - SO/2023/03212 - PO/2023/02123 - Download - BCA Transfer - Cash Before Delivery - Rafi Zadanly - 01 Januari 2023 -
- - - - - - - - toggleSection('purchase')} - /> - { activeSection.purchase && ( -
- John Doe - johndoe@gmail.com - 081223538754 - Jalan Bandengan Utara No 85A, Kel. Penjaringan, Kec. Penjaringan, Jakarta Utara -
- ) } - - - - toggleSection('shipping')} - /> - { activeSection.shipping && ( -
- John Doe - johndoe@gmail.com - 081223538754 - Jalan Bandengan Utara No 85A, Kel. Penjaringan, Kec. Penjaringan, Jakarta Utara -
- ) } - - - - toggleSection('invoice')} - /> - { activeSection.invoice && ( -
- John Doe - johndoe@gmail.com - 081223538754 - Jalan Bandengan Utara No 85A, Kel. Penjaringan, Kec. Penjaringan, Jakarta Utara -
- ) } - -
-
-
- ); -} \ No newline at end of file -- cgit v1.2.3